package ch6;

public class Zuoye5 {//输出比10000大的10个质数

    public static void main(String[] args) {
        int a = 0;
        int b;
        for (int i = 10000; ; i++) {
            for (b = 2; i % b != 0 && b * b < i; b++){
            }
            if (b * b > i) {
                a++;
                System.out.println(i);
                if (a >= 10) {
                    break;
                }
            }
        }
    }
}